<extend name="Public/layout" />

<block name="content">
    <section class="wrapper site-min-height">
        <!-- page start-->
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading">
                        编辑角色
                    </header>
                    <div class="panel-body">
                        <div class=" form">
                            <form class="ajax-from-submit" action="{:U('Admin/AdminRole/edit')}" method="post">
                                <input type="hidden" name="id" value="{$Think.get.id}">
                                <div class="form-group">
                                    <label for="add_name">角色名称</label>
                                    <input name="name" value="{$role.name}" type="text" class="form-control"  id="add_name" placeholder="请输入角色名称" required>
                                </div>
                                <div class="form-group">
                                    <label for="add_desc">描述</label>
                                    <input name="desc" value="{$role.desc}" type="text" class="form-control" id="add_desc" placeholder="请输入描述" required>
                                </div>

                                <div class="form-group">
                                    <label for="add_status">状态</label>
                                    <select name="status" id="add_status" class="form-control">
                                        <option value="0" <eq name="role.status" value="0">selected="selected"</eq>>启用</option>
                                        <option value="1" <eq name="role.status" value="1">selected="selected"</eq>>禁用</option>
                                    </select>
                                </div>
                                <div class="form-group " >
                                    <button class="btn btn-info ajax-form-btn" type="submit">提交</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </section>
            </div>
        </div>
        <!-- page end-->
    </section>
</block>

<block name="javascript">
    <script>
        //菜单高亮
        MenuHighlight('{:U("Admin/AdminRole/index")}');
    </script>
</block>